package com.example.logdemo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
 * @author zzr
 * @date: 2025/09/19  21:25
 * @description:
 */

@RestController
@RequestMapping("/log")
public class LoggerController {
    private static Logger logger = LoggerFactory.getLogger(LoggerController.class);

    @RequestMapping("/get")
    public String log() {
        logger.info("info 日志");
        return "success";
    }
}
